import io from "socket.io-client";
import type { App } from "vue";

export default {
  install: (app: App<Element>, { connection, options}:any) => { 
    var socket = io(connection, options);
    app.config.globalProperties.$socket = socket;
    app.provide("socket", socket);
  },
};
